package pers.xiaojun.boot.module.infra.controller.file.vo.config;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import pers.xiaojun.boot.common.constants.DateTimePatternConstants;
import pers.xiaojun.boot.common.pojo.PageParam;

import java.time.LocalDateTime;

/**
 * 文件配置分页/条件查询请求实体
 *
 * @author xiaojun
 * @since 2025-11-13
 */
@Schema(description = "文件配置分页/条件查询请求实体-VO")
@EqualsAndHashCode(callSuper = true)
@Data
public class FileConfigQueryReqVO extends PageParam {

    @Schema(description = "配置名", example = "S3 - 阿里云")
    private String name;

    @Schema(description = "存储器", example = "1")
    private Integer storage;

    @Schema(description = "创建时间", example = "[2025-11-01 00:00:00, 2025-11-11 23:59:59]")
    @DateTimeFormat(pattern = DateTimePatternConstants.ISO_DATE_TIME)
    private LocalDateTime[] createTime;

}
